// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import store from './store'
import '../src/assets/iconfont.js'
import '../src/assets/iconfont.css'
import service from '../src/service/http-service'
import loading from './common/loading/load'
import Router from 'vue-router'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import VueParticles from 'vue-particles'
import elementUIVerify from 'element-ui-verify'

Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(elementUIVerify);
Vue.prototype.$axios = service;
Vue.use(Router)
const originalPush = Router.prototype.push
Vue.prototype.loading = loading;
Vue.use(mavonEditor)
Vue.use(VueParticles)
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {App},
  template: '<App/>'
})
